# Contributor: Eloi Torrents <eloitor@disroot.org>
# Maintainer: Eloi Torrents <eloitor@disroot.org>
pkgname=lyx
pkgver=2.3.6.1
pkgrel=0
pkgdesc="Advanced WYSIWYM document processor & LaTeX front-end"
url="https://www.lyx.org"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	boost-dev
	enchant2-dev
	file-dev
	mythes-dev
	qt5-qtbase-dev
	qt5-qtsvg-dev
	"
depends="
	imagemagick
	python3
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://ftp.lip6.fr/pub/lyx/stable/2.3.x/lyx-$pkgver.tar.gz"

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--enable-qt5 \
		--without-included-boost \
		--without-included-mythes
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
b2f24d32c3716144fc19a5187d59dce86c718e9180b3b33826a04477c5deeed8238c31e0569b8c218164726ab10b66c76c22dc7e0610ca18a7b7e651a3525cbd  lyx-2.3.6.1.tar.gz
"
